import React, { useEffect, useState, useRef } from 'react';
import { View, Button, Input, Text } from '@tarojs/components'
import './index.scss';
export default (props) => {
  const {
    onChange,
    require = true,
    label,
    value,
    placeholder = '--',
  } = props;
  return <View onClick={onChange} className='FormCondition_select_item'>
    <View className='FormCondition_select_left'>
      {label}
      {require && <Text className='FormCondition_select_leftRequire'>
        *
      </Text>}
    </View>
    <View className='FormCondition_select_right'>
      {value ? value : <View className='FormCondition_select_defult'>{placeholder}</View>}
    </View>
  </View>
};
